<?php

Class CBaseAdvertisementTypes extends CBaseEosPlural {


	public function __construct() {
		parent::__construct();
		return true;
	}

	public static function fetchAdvertisementTypes( $objDatabase ) {

		$strSql = 'SELECT * FROM `advertisement_types`';
		return parent::fetchResults( $strSql, 'CAdvertisementType', $objDatabase );
	}

	public static function fetchAdvertisementTypeById( $intId, $objDatabase ) {

		$strSql = 'SELECT * FROM `advertisement_types` WHERE `id` = ' . $intId;
		return parent::fetchResult( $strSql, 'CAdvertisementType', $objDatabase );
	}
}
?>